package com.ufgov.zc.common.sf.model;

import java.math.BigDecimal;

import com.ufgov.zc.common.zc.model.ZcBaseBill;

public class SfMaterials extends ZcBaseBill{
  public static final String SEQ_SF_MATERIALS_ID = "SEQ_SF_MATERIALS_ID";
  
  public static final String COL_DESCRIPTION="SF_MATERIALS_DESCRIPTION"; // 描述
  public static final String COL_ENTRUST_ID="SF_MATERIALS_ENTRUST_ID"; // 委托ID
  public static final String COL_MATERIAL_ID="SF_MATERIALS_MATERIAL_ID"; // 材料ID
  public static final String COL_NAME="SF_MATERIALS_NAME"; // 名称
  public static final String COL_QUANTITY="SF_MATERIALS_QUANTITY"; // 数量
  public static final String COL_UNIT="SF_MATERIALS_UNIT"; // 单位

  
    /**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column SF_MATERIALS.MATERIAL_ID
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	private BigDecimal materialId;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column SF_MATERIALS.NAME
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	private String name;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column SF_MATERIALS.QUANTITY
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	private BigDecimal quantity;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column SF_MATERIALS.UNIT
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	private String unit;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column SF_MATERIALS.DESCRIPTION
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	private String description;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column SF_MATERIALS.ENTRUST_ID
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	private BigDecimal entrustId;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column SF_MATERIALS.MATERIAL_ID
	 * @return  the value of SF_MATERIALS.MATERIAL_ID
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public BigDecimal getMaterialId() {
		return materialId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column SF_MATERIALS.MATERIAL_ID
	 * @param materialId  the value for SF_MATERIALS.MATERIAL_ID
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public void setMaterialId(BigDecimal materialId) {
		this.materialId = materialId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column SF_MATERIALS.NAME
	 * @return  the value of SF_MATERIALS.NAME
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public String getName() {
		return name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column SF_MATERIALS.NAME
	 * @param name  the value for SF_MATERIALS.NAME
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column SF_MATERIALS.QUANTITY
	 * @return  the value of SF_MATERIALS.QUANTITY
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public BigDecimal getQuantity() {
		return quantity;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column SF_MATERIALS.QUANTITY
	 * @param quantity  the value for SF_MATERIALS.QUANTITY
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public void setQuantity(BigDecimal quantity) {
		this.quantity = quantity;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column SF_MATERIALS.UNIT
	 * @return  the value of SF_MATERIALS.UNIT
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public String getUnit() {
		return unit;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column SF_MATERIALS.UNIT
	 * @param unit  the value for SF_MATERIALS.UNIT
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public void setUnit(String unit) {
		this.unit = unit;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column SF_MATERIALS.DESCRIPTION
	 * @return  the value of SF_MATERIALS.DESCRIPTION
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column SF_MATERIALS.DESCRIPTION
	 * @param description  the value for SF_MATERIALS.DESCRIPTION
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column SF_MATERIALS.ENTRUST_ID
	 * @return  the value of SF_MATERIALS.ENTRUST_ID
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public BigDecimal getEntrustId() {
		return entrustId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column SF_MATERIALS.ENTRUST_ID
	 * @param entrustId  the value for SF_MATERIALS.ENTRUST_ID
	 * @mbggenerated  Sun Jan 11 06:13:48 CST 2015
	 */
	public void setEntrustId(BigDecimal entrustId) {
		this.entrustId = entrustId;
	}

  public String getTempId() {
    if(getMaterialId()!=null){
      return getMaterialId().toString();
    }else{
      return super.getTempId();
    }
  }
	/**
   * 
   */
  private static final long serialVersionUID = 6916108888317822607L;
}